package com.nand.module.function.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.nand.library.base.base.BaseActivity;
import com.nand.module.function.R;
@Route(path = "/function/test")
public class MyTestActivity extends BaseActivity implements View.OnClickListener {

    @Override
    protected int initLayout() {
        return R.layout.activity_my_test;
    }

    @Override
    protected void initView() {
        findViewById(R.id.btn_sbtz).setOnClickListener(this);
        findViewById(R.id.btn_sbxj).setOnClickListener(this);
        findViewById(R.id.btn_sbbx).setOnClickListener(this);
        findViewById(R.id.btn_sbby).setOnClickListener(this);
        findViewById(R.id.btn_sbby2).setOnClickListener(this);

    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View view) {
        Intent intent = null;
        Bundle bundle = null;
        int id = view.getId();
        if (id == R.id.btn_sbtz) {
            intent = new Intent(MyTestActivity.this, EqListActivity.class);
            bundle = new Bundle();
            bundle.putInt("type", 0);
            intent.putExtras(bundle);
        } else if (id == R.id.btn_sbxj) {
            intent = new Intent(MyTestActivity.this, EqListActivity.class);
            bundle = new Bundle();
            bundle.putInt("type", 1);
            intent.putExtras(bundle);
        } else if (id == R.id.btn_sbbx) {
            intent = new Intent(MyTestActivity.this, EqListActivity.class);
            bundle = new Bundle();
            bundle.putInt("type", 2);
            intent.putExtras(bundle);
        } else if (id == R.id.btn_sbby) {
            intent = new Intent(MyTestActivity.this, EqListActivity.class);
            bundle = new Bundle();
            bundle.putInt("type", 3);
            intent.putExtras(bundle);
        } else if (id == R.id.btn_sbby2) {
            intent = new Intent(MyTestActivity.this, EqListActivity.class);
            bundle = new Bundle();
            bundle.putInt("type", 4);
            intent.putExtras(bundle);
        }

        if (intent != null) {
            startActivity(intent);
        }
    }
}
